﻿using System.ComponentModel.DataAnnotations;
using WeBlog.Attributes;

namespace WeBlog.Models
{
    public class RegisterModel
    {
        [WeBlogRequired]    
        public string FirstName { get; set; }

        [WeBlogRequired]    
        public string LastName { get; set; }

        [WeBlogRequired]    
        [EmailRegex]
        public string Email { get; set; }

        [WeBlogRequired]    
        [DataType(DataType.Password)]        
        public string Password { get; set; }

        [WeBlogRequired]    
        [DataType(DataType.Password)]        
        public string ConfirmPassword { get; set; }
    }
}